function hideFootnotes(id){
    var div = document.getElementById('note_'+id);
    div.className = 'footnote_new';
    div.style.display = 'none';
    return false;
}

function showFootnote(id, text){
    var tag = document.getElementsByTagName("div");
    for(i=0;i<tag.length;i++){
	ii=document.getElementById('note_' + i);
	if(ii==null)continue;
	ii.style.display='none';
    }
    var div = document.getElementById('note_' + id);
    div.innerHTML = '<a href="#" onclick="return hideFootnotes('+id+')"><img src="/images/x.gif" height="13" width="13" border="0" id="x_image" /></a><div style="float: right; width: 170px; height: 17px"></div><div style="padding:3px;padding-top:13px;">' + text + '</div>';
    div.className = 'footnote_new_active';
    div.style.display = 'none';
    div.style.display = 'block';
    return false;
}
